package com.ly.leave.instener;

import lombok.extern.slf4j.Slf4j;
import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;
import org.springframework.stereotype.Component;

import java.io.Serializable;

@Component
@Slf4j
public class approvalCreatedListener implements TaskListener, Serializable {

    @Override
    public void notify(DelegateTask delegateTask) {
        String delegateTaskId = delegateTask.getId();
        String eventName = delegateTask.getEventName();
        System.out.println("监听事件！ id:"+delegateTaskId+";事件名称："+eventName);
    }
}
